package com.example.service.impl;

import com.example.mapper.Sys_CarMapper;
import com.example.po.Sys_Car;
import com.example.service.Sys_CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auter czcjq
 * @date 2022/5/17 15:22
 */
@Service
public class Sys_CarServiceImpl implements Sys_CarService {
    @Autowired
    private Sys_CarMapper sys_carMapper;
    @Override
    public List<Sys_Car> findCarOrderByPrice(int getid) {
        List<Sys_Car> carPrice = sys_carMapper.findCarPrice(getid);
        return  carPrice;
    }

    @Override
    public List<Sys_Car> findCarOrderByNumber(int getid) {
        List<Sys_Car> carNumber = sys_carMapper.findCarNumber(getid);
        return carNumber;
    }

    @Override
    public Sys_Car findOneByID(int cid) {
        Sys_Car oneByID = sys_carMapper.findOneByID(cid);
        return oneByID;
    }
}
